﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="QuanLyThamSo.aspx.cs" Inherits="ChamCong.QuanLyThamSo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div style="width: 750px;">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server" >
            <ContentTemplate>
                <div style="float: right; width: 350px;">
                    <sbc:sbcMsgBox ID="sbcMsgBox1" runat="server" UseJQuery="True" />
                    <table runat="server" id="tbSua" style="float: right; padding-top: 20px;">
                        <tr>
                            <td>
                                Mã Tham Số:
                            </td>
                            <td>
                                <asp:Label ID="lbMaTS" runat="server" Font-Bold="True" ForeColor="#FF6600"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Tên Tham Số:
                            </td>
                            <td>
                                <asp:TextBox ID="txtTenTS" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Giá Trị:
                            </td>
                            <td>
                                <asp:TextBox ID="txtGiaTri" runat="server"></asp:TextBox>
                                <asp:TextBox ID="txtThoiGian" runat="server"></asp:TextBox>
                                <asp:DropDownList ID="drTTLV7" runat="server">
                                    <asp:ListItem Value="1">Buổi Sáng</asp:ListItem>
                                    <asp:ListItem Value="2">Cả Ngày</asp:ListItem>
                                    <asp:ListItem Value="3">Không Làm</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Label ID="lblChuThich" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <asp:Button ID="btnChinhSua" runat="server" Text="Chỉnh Sửa" 
                                    onclick="btnChinhSua_Click" CssClass="button" />
                                <asp:Button ID="btnHuy" runat="server" Text="Hủy" onclick="btnHuy_Click" 
                                    CssClass="button" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lbNPTT" runat="server" Text="Reset số ngày phép:"></asp:Label>
                            </td>
                            <td align="center" >
                                <asp:Button ID="btnReset" runat="server" Text="Reset" CssClass="button" 
                                    onclick="btnReset_Click"  />
                            </td>
                        </tr>
                    </table>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <div style="float: left; width: 400px;">
                    <asp:GridView ID="dgvThamSo" runat="server" AutoGenerateColumns="False" DataSourceID="DSThamSo"
                        OnRowDataBound="gv_RowDataBound" CellPadding="4" ForeColor="#333333" 
                        GridLines="None">
                        <AlternatingRowStyle BackColor="White" />
                        <Columns>
                            <asp:BoundField DataField="MaThamSo" HeaderText="Mã" SortExpression="MaThamSo" />
                            <asp:BoundField DataField="TenThamSo" HeaderText="Tên Tham Số" SortExpression="TenThamSo" />
                            <asp:BoundField DataField="GiaTri" HeaderText="Giá Trị" SortExpression="GiaTri" />
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:Button ID="btnSua" runat="server" Text="Sửa" OnClick="btnSua_Click" />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle BackColor="#2461BF" />
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#EFF3FB" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#323232" />
                        <SortedAscendingCellStyle BackColor="#F5F7FB" />
                        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                        <SortedDescendingCellStyle BackColor="#E9EBEF" />
                        <SortedDescendingHeaderStyle BackColor="#4870BE" />
                    </asp:GridView>
                    <asp:ObjectDataSource ID="DSThamSo" runat="server" SelectMethod="LayTatCa" TypeName="BusinessLogicLayer.ThamSoBLL">
                    </asp:ObjectDataSource>

                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>

